package com.s1nx.back.dto.convert;

import com.s1nx.back.dto.UserDTO;
import com.s1nx.back.entity.User;

public class UserConverter {
    public static UserDTO convertToUserDTO(User user) {
        if (user == null) {
            return null;
        }
        return new UserDTO(user.getUsername(), user.getPassword());
    }
}

